﻿//************************************************************ 
// Copyright © 2009 - 2010 Oleg Stuhin & Rostislav Haitovich
// To learn more about Mytrip.Mvc.Entyty visit 
// http://starterkitmytripmvc.codeplex.com/
// mytripmvc@gmail.com
// license: Microsoft Public License (Ms-PL) 
// ***********************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    /// <summary>
    /// AccordionElements
    /// </summary>
    public static class AccordionElements
    {
        /// <summary>
        /// (green)border:5px #EDEBD5 solid;
        /// </summary>
        /// <returns>static string</returns>
        public static string accordion()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("border:5px #EDEBD5 solid;");
            }
            return result.ToString();
        }
        /// <summary>
        /// (blue)background: #4b6c9e url(blue/accordion.gif) no-repeat right -51px;
        /// (green)background: #ED5C0C url(green/accordion.gif) no-repeat right -51px;
        /// color:#fff;
        /// padding: 7px 15px;
        /// margin: 0;
        /// cursor: pointer;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("background: #4b6c9e url(blue/accordion.gif) no-repeat right -51px;");
                result.AppendLine("border-bottom: solid 1px #fff;");                
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("background: #ccc url(gray/accordion.gif) no-repeat right -51px;");
                result.AppendLine("border-bottom: solid 1px #fff;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("background: #ED5C0C url(green/accordion.gif) no-repeat right -51px;");
                result.AppendLine("border-bottom: solid 1px #F3951B;");
            }
            if (ThemeSetting.theme() == "gray")
                result.AppendLine("color: #333;");
            else
            result.AppendLine("color:#fff;");
            result.AppendLine("padding: 7px 15px;");
            result.AppendLine("margin: 0;");
            result.AppendLine("cursor: pointer;");
            return result.ToString();
        }
        /// <summary>
        /// (blue)background-color: #4b6c9e;
        /// (green)background-color: #ED5C0C;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle_hover()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("background-color: #4b6c9e;");
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("background-color: #ccc;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("background-color: #ED5C0C;");
            }
            return result.ToString();
        }
        /// <summary>
        /// background-position: right 5px;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle_active()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("background-position: right 5px;");            
            return result.ToString();
        }
        /// <summary>
        /// color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle_a()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "gray")
                result.AppendLine("color: #333;");
            result.AppendLine("color: #fff;");
            return result.ToString();
        }
        /// <summary>
        /// color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle_a_link()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "gray")
                result.AppendLine("color: #333;");
                result.AppendLine("color: #fff;");
            
            return result.ToString();
        }
        /// <summary>
        /// color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle_a_hover()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "gray")
                result.AppendLine("color: #333;");
                result.AppendLine("color: #fff;");
            
            return result.ToString();
        }
        /// <summary>
        /// color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle_a_visited()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "gray")
                result.AppendLine("color: #333;");
                result.AppendLine("color: #fff;");
            
            return result.ToString();
        }
        /// <summary>
        /// color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordiontitle_a_active()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "gray")
                result.AppendLine("color: #333;");
                result.AppendLine("color: #fff;");
           
            return result.ToString();
        }
        /// <summary>
        /// margin: 0;
        /// (blue)background-color: #fff;
        /// (blue)border: solid 1px #4b6c9e;
        /// (blue)margin-bottom: 1px;
        /// (green)background-color: #F3951B;
        /// (green)border: solid 1px #F3951B;
        /// (green)color: #fff;
        /// padding:  5;
        /// display: none;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordioncontent()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("margin: 0;");
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("background-color: #fff;");
                result.AppendLine("border: solid 1px #4b6c9e;");
                result.AppendLine("margin-bottom: 1px;");
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("background-color: #fff;");
                result.AppendLine("border: solid 1px #ccc;");
                result.AppendLine("margin-bottom: 1px;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("background-color: #F3951B;");
                result.AppendLine("border: solid 1px #F3951B;");
                result.AppendLine("color: #fff;");
            }            
            result.AppendLine("padding:  5;");
            result.AppendLine("display: none;");
            return result.ToString();
        }
        /// <summary>
        /// (blue)color: #034af3;
        /// (green)color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordioncontent_a()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("color: #333;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        /// <summary>
        /// (blue)color: #034af3;
        /// (green)color: #fff;
        /// </summary>
        /// <returns></returns>
        public static string div_accordioncontent_a_link()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("color: #333;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        /// <summary>
        /// (blue)color: #034af3;
        /// (green)color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordioncontent_a_hover()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("color: #333;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        /// <summary>
        /// (blue)color: #034af3;
        /// (green)color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordioncontent_a_visited()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("color: #333;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        /// <summary>
        /// (blue)color: #034af3;
        /// (green)color: #fff;
        /// </summary>
        /// <returns>static string</returns>
        public static string div_accordioncontent_a_active()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            }
            if (ThemeSetting.theme() == "gray")
            {
                result.AppendLine("color: #333;");
            }
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
    }
}
